<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{historialClientes.page1}" id="page1">
            <ui:html binding="#{historialClientes.html1}" id="html1">
                <ui:head binding="#{historialClientes.head1}" id="head1">
                    <ui:link binding="#{historialClientes.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{historialClientes.body1}" focus="form1:radioButtonGroup1" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{historialClientes.form1}" id="form1">
                        <ui:button action="#{historialClientes.consultar_action}" binding="#{historialClientes.consultar}" id="consultar"
                            imageURL="/resources/consultar.png" mini="true" primary="true"
                            style="height: 29px; left: 144px; top: 168px; position: absolute; width: 46px" text="Consultar"/>
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:button action="#{historialClientes.button2_action}" binding="#{historialClientes.button2}" id="button2"
                            imageURL="/resources/home3.gif" mini="true" primary="true"
                            style="height: 29px; left: 72px; top: 168px; position: absolute; width: 46px" text="Cerrar"/>
                        <ui:label binding="#{historialClientes.label1}" id="label1" style="left: 336px; top: 192px; position: absolute" text="Nit"/>
                        <ui:textField binding="#{historialClientes.nitTextField}" columns="14" disabled="true" id="nitTextField" style="left: 456px; top: 192px; position: absolute; width: 171px"/>
                        <ui:messageGroup binding="#{historialClientes.messageGroup1}" id="messageGroup1" style="height: 70px; left: 648px; top: 216px; position: absolute; width: 334px"/>
                        <ui:alert binding="#{historialClientes.alert1}" id="alert1" style="left: 648px; top: 168px; position: absolute; width: 262px"/>
                        <ui:label binding="#{historialClientes.label5}" id="label5" style="left: 336px; top: 168px; position: absolute" text="Tipo de Identificación "/>
                        <ui:dropDown binding="#{historialClientes.tipoIdDropDown}" disabled="true" id="tipoIdDropDown"
                            items="#{historialClientes.sct0054DataProvider.options['SCT0054.TPOIDNTFCCION,SCT0054.DSCRPCCION']}" style="left: 456px; top: 168px; position: absolute; width: 171px"/>
                        <ui:label binding="#{historialClientes.label6}" id="label6"
                            style="color: rgb(108, 154, 154); font-size: 14px; left: 72px; top: 120px; position: absolute" text="CONSULTA HISTORIAL DE CLIENTES"/>
                        <ui:label binding="#{historialClientes.label2}" id="label2" style="left: 336px; top: 216px; position: absolute" text="Nombre"/>
                        <ui:textField binding="#{historialClientes.nombretextField}" columns="14" disabled="true" id="nombretextField" style="left: 456px; top: 216px; position: absolute; width: 171px"/>
                        <ui:label binding="#{historialClientes.label3}" id="label3" style="left: 336px; top: 240px; position: absolute" text="Primer Apellido"/>
                        <ui:textField binding="#{historialClientes.ape1textField}" columns="14" disabled="true" id="ape1textField" style="left: 456px; top: 240px; position: absolute; width: 171px"/>
                        <ui:label binding="#{historialClientes.label4}" id="label4" style="left: 336px; top: 264px; position: absolute" text="Segundo Apellido"/>
                        <ui:textField binding="#{historialClientes.ape2textField}" disabled="true" id="ape2textField" style="left: 456px; top: 264px; position: absolute; width: 171px"/>
                        <ui:radioButtonGroup binding="#{historialClientes.radioButton}" id="radioButton"
                            items="#{historialClientes.radioButtonDefaultOptions.options}" onClick="common_timeoutSubmitForm(this.form, 'radioButton');"
                            selected="#{historialClientes.radioButtonDefaultOptions.selectedValue}"
                            style="left: 72px; top: 216px; position: absolute; width: 216px" valueChangeListener="#{historialClientes.radioButton_processValueChange}"/>
                        <ui:table augmentTitle="false" binding="#{historialClientes.table2}" clearSortButton="true" deselectMultipleButton="true" id="table2"
                            paginateButton="true" paginationControls="true" sortPanelToggleButton="true"
                            style="left: 72px; top: 336px; position: absolute; width: 1001px" title="Clientes con el criterio de busqueda" width="1001">
                            <script><![CDATA[C
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table2");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table2");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table2");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table2");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table2");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table2");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                            <ui:tableRowGroup binding="#{historialClientes.tableRowGroup2}" emptyDataMsg="No hay Registros" id="tableRowGroup2" rows="10"
                                sourceData="#{historialClientes.clientesSimilaresDataProvider}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{historialClientes.tableColumn15}" headerText="Nombre" id="tableColumn15" sort="ESTDO" width="150">
                                    <ui:staticText binding="#{historialClientes.staticText14}" id="staticText14" text="#{currentRow.value['ESTDO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{historialClientes.tableColumn11}" headerText="Primer Apellido" id="tableColumn11"
                                    sort="FCHACRCIONRGSTRO" width="150">
                                    <ui:staticText binding="#{historialClientes.staticText10}" id="staticText10" text="#{currentRow.value['FCHACRCIONRGSTRO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{historialClientes.tableColumn10}" headerText="Segundo Apellido" id="tableColumn10" sort="ORDEN" width="150">
                                    <ui:staticText binding="#{historialClientes.staticText9}" id="staticText9" text="#{currentRow.value['ORDEN']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{historialClientes.tableColumn8}" headerText="Tipo Identificación" id="tableColumn8" sort="OPRDOR" width="200">
                                    <ui:staticText binding="#{historialClientes.staticText7}" id="staticText7" text="#{currentRow.value['OPRDOR']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{historialClientes.tableColumn9}" headerText="NIt" id="tableColumn9" sort="CDGOVRBLE" width="100">
                                    <ui:staticText binding="#{historialClientes.staticText8}" id="staticText8" text="#{currentRow.value['CDGOVRBLE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{historialClientes.tableColumn16}" headerText="Consultar" id="tableColumn16"
                                    valign="middle" width="50">
                                    <ui:button action="#{historialClientes.consulta2_action}" binding="#{historialClientes.consulta2}" id="consulta2"
                                        mini="true" text="Consultar"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <ui:hiddenField binding="#{historialClientes.hiddenField1}" id="hiddenField1"/>
                        <ui:button binding="#{historialClientes.button1}" id="button1"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
